<template>
	<view class="user-collection">
		<tabs :is-scroll="false" :current="active" @change="onChange">
			<tab name="商品">
				<collection-list :type="1" :i="0" :index="active"></collection-list>
			</tab>
			<tab name="店铺">
				<collection-list :type="2" :i="1" :index="active"></collection-list>
			</tab>
		</tabs>
	</view>
</template>

<script>
	

	export default {
		data() {
			return {
				active: 0
			};
		},



		methods: {
			onChange(index) {
				this.active = index
			}
		}
	};
</script>
<style lang="scss">
	
</style>
